﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="index_news.ascx.cs" Inherits="Control_index_news" %>
<script type="text/javascript">
    $(function () {
        $(".newTag").bind("mouseover", function () {
//            if ($(this).hasClass("index_1_29"))
//                return true;
            var index = $(".newTag").index($(this));
            //将菜单的颜色设为黑色
            //$(".index_1_29").toggleClass("index_1_29");
            //将当前菜单的颜色设为橘色
            //$(this).toggleClass("index_1_29");
            //$(this).toggleClass("index_1_30");
            //隐藏所有新闻内容
            $(".newsContent").hide();
            //显示对应的新闻内容
            $(".newsContent").eq(index).show();
        });
    });
</script>
<div class="index_1_25">
    <div class="index_1_26">
        <div class="index_1_27">
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_left.gif"></div>
            <div class="index_1_29 newTag">
                网站公告</div>
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_right.gif"></div>
        </div>
        <div class="index_1_27">
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_left2.gif"></div>
            <div class="index_1_30 newTag">
                社会公益</div>
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_right2.gif"></div>
        </div>
        <div class="index_1_27">
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_left2.gif"></div>
            <div class="index_1_30 newTag">
                行业规则</div>
            <div class="index_1_28">
                <img height="21" width="3" src="/images/rightbar_nav_right2.gif"></div>
        </div>
    </div>
    <div class="index_1_31">
        <asp:Repeater ID="rpNews1" runat="server">
            <HeaderTemplate><div class="index_1_32 newsContent">
            <ul></HeaderTemplate>
            <ItemTemplate>
            <li><%#Eval("Title")%></li>
            </ItemTemplate>
            <FooterTemplate> </ul>
        </div></FooterTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rpNews2" runat="server">
            <HeaderTemplate><div class="index_1_32 newsContent" style="display:none;">
            <ul></HeaderTemplate>
            <ItemTemplate>
            <li><%#Eval("Title")%></li>
            </ItemTemplate>
            <FooterTemplate> </ul>
        </div></FooterTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rpNews3" runat="server">
            <HeaderTemplate><div class="index_1_32 newsContent" style="display:none;">
            <ul></HeaderTemplate>
            <ItemTemplate>
            <li><%#Eval("Title")%></li>
            </ItemTemplate>
            <FooterTemplate> </ul>
        </div></FooterTemplate>
        </asp:Repeater>
    </div>
</div>
